package com.sun.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

@Data
public class User {
    @NotBlank(message = "id空了")
    @Excel(name = "编号",orderNum = "1")
    private String id;
    @NotBlank(message = "名称不能为空")
    @Excel(name = "姓名",orderNum = "2")
    private String name;
    /*@DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(
            pattern = "yyyy-MM-dd",
            timezone = "GMT+8"
    )
    @NotNull(message = "日期不能为空")
    @Excel(name = "生日",orderNum = "3",exportFormat = "yyyy年MM月dd日")
    private Date date;*/

    private String age;

    public void t1(Map map){
        System.out.println("t1============" + map);
//        return "123";
    }
}
